<?php
	class ModelSettingreviewSettingreview extends Model {
		public function getSettingreview($user_id) {
			$query = $this->db->query("SELECT * FROM setting_review WHERE user_id = '".$this->db->escape($user_id)."'");
			return $query->rows;
		}
		public function editSettingreview($data) {
			$this->db->query("UPDATE setting_review SET review_date = '" . $this->db->escape($data['review_date']) ."' WHERE user_id = '" . $this->db->escape($data['user_id']) ."' AND times = '" . (int)$data['times'] ."'" );
			return $this->db->countAffected();
		}
	}